﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
namespace MRSite.Entity
{
    /// <summary>
    /// 消费奖励明细
    /// </summary>
    [Table(Name = "customer_gold_fenghong")]
    public class CustomerGoldFengHong : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_name")]
        public String user_name { get; set; }


        /// <summary>
        ///    返的金币
        /// </summary>
        [Column(Name = "golds")]
        public decimal golds { get; set; }

        /// <summary>
        ///  添加
        /// </summary>
        [Column(Name = "addtime")]
        public DateTime addtime { get; set; }


        /// <summary>
        /// 公排id
        /// </summary>
        [Column(Name = "gpid")]
        public int gpid { get; set; }

        /// <summary>
        /// 第几天
        /// </summary>
        [Column(Name = "qishu")]
        public int qishu { get; set; }

        /// <summary>
        /// 报单号
        /// </summary>
        [Column(Name = "orderno")]
        public string orderno { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "remark")]
        public String remark { get; set; }

        /// <summary>
        /// 应返还时间
        /// </summary>
        [Column(Name = "yreturntime")]
        public DateTime? yreturntime { get; set; }


        /// <summary>
        /// 结算日期
        /// </summary>
        [Column(Name = "returntime")]
        public DateTime? returntime { get; set; }

        /// <summary>
        /// 状态 1返还 0未返完
        /// </summary>
        [Column(Name = "status")]
        public int status { get; set; }


        /// <summary>
        /// 会员等级
        /// </summary>
        [Column(Name = "levels")]
        public int levels { get; set; }

        /// <summary>
        /// 年
        /// </summary>
        [Column(Name = "year")]
        public int year { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        [Column(Name = "month")]
        public int month { get; set; }

        /// <summary>
        ///    团队业绩
        /// </summary>
        [Column(Name = "teamyeji")]
        public decimal teamyeji { get; set; }


        /// <summary>
        ///    分红比例
        /// </summary>
        [Column(Name = "per")]
        public decimal per { get; set; }


        /// <summary>
        ///  减掉的下级团队奖励
        /// </summary>
        [Column(Name = "subjiangli")]
        public decimal subjiangli { get; set; }


        /// <summary>
        /// 类别：0日奖励；1半月奖励；2；每日首购奖励释放到锁仓共建值；4：每月25日返还上月手续费；5、2999实名认证额外奖励
        /// </summary>
        [Column(Name = "type")]
        public int type { get; set; }


    }
}
